from __future__ import print_function
from collections import OrderedDict
def meminfo():
    meminfo = OrderedDict()
    with open('/proc/meminfo') as f:
        for line in f:
            meminfo[line.split(':')[0]] = line.split(':')[1].strip()
    m = meminfo['MemTotal']
    meminfo = ( filter(str.isdigit,m)) 
    return meminfo
'''
def ramsize(meminfo):
    meminfo = meminfo()
    mem = meminfo['MemTotal']
    return ( filter(str.isdigit,mem))
'''